import axios from 'axios'
import config from '../config'

export function getLiquidData (query) {
  return axios.get(`/api-r/service/dataopen/getLiquidData?${query}`, {responseType: 'json'})
    .then(resp => resp)
}

export function getSolidData (query) {
  return axios.get(`/api-r/service/dataopen/getSolidData?${query}`, {responseType: 'json'})
    .then(resp => resp)
}

export function getPackData (query) {
  return axios.get(`/api-r/service/dataopen/getPackData?${query}`, {responseType: 'json'})
    .then(resp => resp)
}

export function getShipreportData (query) {
  return axios.get(`/api-r/service/dataopen/getShipreportData?${query}`, {responseType: 'json'})
    .then(resp => resp)
}

export function getShipExportInspect (query) {
  return axios.get(`/api-r/service/dataopen/getShipExportInspect?${query}`, {responseType: 'json'})
    .then(resp => resp)
}

export function getShipStateControl (query) {
  return axios.get(`/api-r/service/dataopen/getShipStateControl?${query}`, {responseType: 'json'})
    .then(resp => resp)
}

export function getShipInspFormA (query) {
  return axios.get(`/api-r/service/dataopen/getShipInspFormA?${query}`, {responseType: 'json'})
    .then(resp => resp)
}

export function getShipManningDataODS (query) {
  return axios.get(`/api-r/service/dataopen/getShipManningDataODS?${query}`, {responseType: 'json'})
    .then(resp => resp)
}
